/*自定义样式，实时生效*/

/* 全局属性
* 页边距 padding:30px;
* 全文字体 font-family:optima-Regular;
* 英文换行 word-break:break-all;
color:#2b2b2b;
*/
.lucky-doc {
  line-height: 1.25;
  color: #2b2b2b;
  /* font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace,
    monospace, courier, sans-serif; */
  letter-spacing: 2px;
  /* 底部网格css */
  /* background-image: linear-gradient(
      90deg,
      rgba(50, 0, 0, 0.04) 3%,
      rgba(0, 0, 0, 0) 3%
    ),
    linear-gradient(360deg, rgba(50, 0, 0, 0.04) 3%, rgba(0, 0, 0, 0) 3%); */
  background-size: 20px 20px;
  background-position: center center;
}

/* 段落，下方未标注标签参数均同此处
  * 上边距 margin-top:5px;
  * 下边距 margin-bottom:5px;
  * 行高 line-height:26px;
  * 词间距 word-spacing:3px;
  * 字间距 letter-spacing:3px;
  * 对齐 text-align:left;
  * 颜色 color:#3e3e3e;
  * 字体大小 font-size:16px;
  * 首行缩进 text-indent:2em;
  */
.lucky-doc p {
  color: #5e6d82;
  margin: 10px 0px;
  letter-spacing: 2px;
  font-size: 15px;
  word-spacing: 1px;
}

/* 一级标题 */
.lucky-doc h1 {
  font-size: 30px;
  margin: 30px auto;
  color: #40b8fa;
  text-align: center;
}

/* 一级标题内容 */
.lucky-doc h1 span {
  display: inline-block;
  font-weight: bold;
  color: #40b8fa;
}

/* 一级标题修饰 请参考有实例的主题 */
.lucky-doc h1:after {
}

/* 二级标题 */
.lucky-doc h2 {
  display: block;
  border-bottom: 4px solid #40b8fa;
  width: fit-content;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  color: #40b8fa;
  margin-top: 50px;
}

/* 二级标题内容 */
.lucky-doc h2 .content {
  display: flex;
  color: #40b8fa;
  font-size: 20px;
  margin-left: 25px;
}

/* 二级标题前缀 */
.lucky-doc h2 .prefix {
  display: flex;
  width: 20px;
  height: 20px;
  background-size: 20px 20px;
  background-image: url(https://imgkr.cn-bj.ufileos.com/15fdfb3c-b350-4da9-928e-5f8c506ec325.png);
  margin-bottom: -22px;
}

/* 二级标题后缀 */
.lucky-doc h2 .suffix {
  display: flex;
  box-sizing: border-box;
  width: 200px;
  height: 10px;
  border-top-left-radius: 20px;
  background: RGBA(64, 184, 250, 0.5);
  color: rgb(255, 255, 255);
  font-size: 16px;
  letter-spacing: 0.544px;
  justify-content: flex-end;
  box-sizing: border-box !important;
  overflow-wrap: break-word !important;
  float: right;
  margin-top: -10px;
}

/* 三级标题 */
.lucky-doc h3 {
  font-size: 17px;
  font-weight: bold;
  text-align: center;
  position: relative;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* 三级标题内容 */
.lucky-doc h3 .content {
  border-bottom: 2px solid RGBA(79, 177, 249, 0.65);
  color: #2b2b2b;
  padding-bottom: 2px;
}

.lucky-doc h3 .content:before {
  content: '';
  width: 30px;
  height: 30px;
  display: block;
  background-image: url(https://imgkr.cn-bj.ufileos.com/cdf294d0-6361-4af9-85e2-0913f0eb609b.png);
  background-position: center;
  background-size: 30px;
  margin: auto;
  opacity: 1;
  background-repeat: no-repeat;
  margin-bottom: -8px;
}

/* 三级标题修饰 请参考有实例的主题 */
.lucky-doc h3:after {
}

.lucky-doc h4 .content {
  height: 16px;
  line-height: 16px;
  font-size: 16px;
}

.lucky-doc h4 .content:before {
  content: '';
  background-image: url(https://imgkr.cn-bj.ufileos.com/899e43b7-5a08-4ac6-aa00-1c45f169a65b.png);
  display: inline-block;
  width: 16px;
  height: 16px;
  background-size: 100%;
  background-position: left bottom;
  background-repeat: no-repeat;
  width: 16px;
  height: 15px;
  line-height: 15px;
  margin-right: 6px;
  margin-bottom: -2px;
}

/* 无序列表整体样式
  * list-style-type: square|circle|disc;
  */
.lucky-doc ul {
  font-size: 15px; /*神奇逻辑，必须比li section的字体大才会在二级中生效*/
  color: #595959;
  list-style-type: circle;
}

/* 有序列表整体样式
  * list-style-type: upper-roman|lower-greek|lower-alpha;
  */
.lucky-doc ol {
  font-size: 15px;
  color: #595959;
}

/* 列表内容，不要设置li
  */
.lucky-doc li section {
  font-size: 14px;
  font-weight: normal;
  color: #595959;
}

/* 引用
  * 左边缘颜色 border-left-color:black;
  * 背景色 background:gray;
  */
/* 去掉引用的巨型标点 */
/* .lucky-doc blockquote::before {
  content: '❝';
  color: RGBA(64, 184, 250, 0.5);
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
} */

.lucky-doc blockquote {
  text-size-adjust: 100%;
  line-height: 1.55em;
  font-weight: 400;
  border-radius: 6px;
  color: #595959;
  font-style: normal;
  text-align: left;
  box-sizing: inherit;
  border-left: none;
  border: 1px solid RGBA(64, 184, 250, 0.4);
  background: RGBA(64, 184, 250, 0.1);
}

.lucky-doc blockquote p {
  color: #595959;
}

.lucky-doc blockquote::after {
  content: '❞';
  float: right;
  color: RGBA(64, 184, 250, 0.5);
}

/* 链接
  * border-bottom: 1px solid #009688;
  */
.lucky-doc a {
  color: #40b8fa;
  font-weight: normal;
  border-bottom: 1px solid #3baafa;
}

.lucky-doc strong::before {
  content: '「';
}

/* 加粗 */
.lucky-doc strong {
  color: #3594f7;
  font-weight: bold;
}

.lucky-doc strong::after {
  content: '」';
}

/* 斜体 */
.lucky-doc em {
  font-style: normal;
  color: #3594f7;
  font-weight: bold;
}

/* 加粗斜体 */
.lucky-doc em strong {
  color: #3594f7;
}

/* 删除线 */
.lucky-doc del {
  color: #3594f7;
}

/* 分隔线
  * 粗细、样式和颜色
  * border-top:1px solid #3e3e3e;
  */
.lucky-doc hr {
  height: 1px;
  padding: 0;
  border: none;
  border-top: 2px solid #3baafa;
}

/* 图片
  * 宽度 width:80%;
  * 居中 margin:0 auto;
  * 居左 margin:0 0;
  */
.lucky-doc img {
  border-radius: 6px;
  display: block;
  margin: 20px auto;
  object-fit: contain;
  box-shadow: 2px 4px 7px #999;
}

/* 图片描述文字 */
.lucky-doc figcaption {
  display: block;
  font-size: 13px;
  color: #2b2b2b;
}

.lucky-doc figcaption:before {
  content: '';
  background-image: url(https://img.alicdn.com/tfs/TB1Yycwyrj1gK0jSZFuXXcrHpXa-32-32.png);
  display: inline-block;
  width: 18px;
  height: 18px;
  background-size: 18px;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 5px;
  margin-bottom: -5px;
}

/* 行内代码 */
.lucky-doc p code,
.lucky-doc li code {
  color: #3594f7;
  background: RGBA(59, 170, 250, 0.1);
  display: inline-block;
  padding: 0 2px;
  border-radius: 2px;
  height: 21px;
  line-height: 22px;
}

/* 非微信代码块
  * 代码块不换行 display:-webkit-box !important;
  * 代码块换行 display:block;
  */
.lucky-doc .code-snippet__fix {
  background: #f7f7f7;
  border-radius: 2px;
}

/* 代码块样式 */
.lucky-doc pre code {
  letter-spacing: 0px;
  font-size: 16px;
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace,
    monospace, courier, sans-serif;
  border-radius: 4px;
}

/*
  * 表格内的单元格
  * 字体大小 font-size: 16px;
  * 边框 border: 1px solid #ccc;
  * 内边距 padding: 5px 10px;
  */
.lucky-doc table tr th,
.lucky-doc table tr td {
  font-size: 14px;
  color: #595959;
  letter-spacing: 0px;
}

.lucky-doc .footnotes {
  background: #f6eeff;
  padding: 20px 20px 20px 20px;
  font-size: 14px;
  border: 0.8px solid #dec6fb;
  border-radius: 6px;
  border: 1px solid #dec6fb;
}

/* 脚注文字 */
.lucky-doc .footnote-word {
  font-weight: normal;
  color: #595959;
}

/* 脚注上标 */
.lucky-doc .footnote-ref {
  font-weight: normal;
  color: #595959;
}

/*脚注链接样式*/
.lucky-doc .footnote-item em {
  font-size: 14px;
  color: #595959;
  display: block;
}

.lucky-doc .footnotes {
  background: RGBA(53, 148, 247, 0.4);
  padding: 20px 20px 20px 20px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid RGBA(53, 148, 247, 1);
}

/* "参考资料"四个字
  * 内容 content: "参考资料";
  */
.lucky-doc .footnotes-sep:before {
  content: 'Reference';
  color: #595959;
  letter-spacing: 1px;
  border-bottom: 2px solid RGBA(64, 184, 250, 1);
  display: inline;
  background: linear-gradient(white 60%, RGBA(64, 184, 250, 0.4) 40%);
  font-size: 20px;
}

/* 参考资料编号 */
.lucky-doc .footnote-num {
}

/* 参考资料文字 */
.lucky-doc .footnote-item p {
  color: #595959;
  font-weight: bold;
}

/* 参考资料解释 */
.lucky-doc .footnote-item p em {
  font-weight: normal;
}

/* 行间公式
  * 最大宽度 max-width: 300% !important;
  */
.lucky-doc .block-equation svg {
}

/* 行内公式
  */
.lucky-doc .inline-equation svg {
}

/* 滑动图片
   */
.lucky-doc .imageflow-img {
  display: inline-block;
  width: 100%;
  margin-bottom: 0;
}

/* 表格样式
 */
.lucky-doc table {
  border-collapse: collapse;
  margin: 1rem 0;
  display: block;
  overflow-x: auto;
  font-size: 16px !important;
}

.lucky-doc table thead {
  display: table-header-group;
  vertical-align: middle;
  border-color: inherit;
}

.lucky-doc tr {
  border-top: 1px solid #dfe2e5;
  display: table-row;
  vertical-align: inherit;
  border-color: inherit;
}
.lucky-doc tr th {
  border: 1px solid #dfe2e5;
  padding: 1em 1em;
  display: table-cell;
  vertical-align: inherit;
  font-weight: bold;
  text-align: -internal-center;
}

.lucky-doc tr td {
  border: 1px solid #dfe2e5;
  padding: 1em 1em;
  text-align: center;
}
